//index.js
//获取应用实例
var app = getApp()
var wxSortPickerView = require('../../areaCodeView/areaCodeView.js');
const util = require('../../utils/util.js');
Page({
    data: {},
    onLoad: function(options) {
        var that = this
        that.setData({
            isChinese: wx.getStorageSync("isChinese")
        })
        if (options.isTpe) {
            that.setData({
                isType: options.isTpe,
                temABC: wxSortPickerView.temABC
            })
        }
        wxSortPickerView.init(util, that);
    },
    wxSortPickerViewItemTap: function(e) {
        if (this.data.isType == 1) {

        } else {
            wx.setStorageSync("countryNames", e.currentTarget.dataset.countryname)
            wx.setStorageSync("areaCode", e.currentTarget.dataset.text)
        }

        wx.navigateBack({
            delta: 1
        })

    }
})